package com.example.news.service;

import com.example.news.pojo.Comments;
import com.example.news.pojo.News;
import com.example.news.pojo.PageResult;

import java.util.List;

public interface NewsService {
    PageResult<News> getAllNews(Integer currentPage, String title);
    News showNewsDetail(String newsCode);
    List<Comments> getComments(String newsCode);
    Integer addComments(Comments comments);
}
